import http from '@/utils/http'
// 获取列表
export async function getListApi(parm) {
  return await http.get('/api/houseUnit/list', parm)
}
// 获取栋数列表
export async function getBuildListApi(parm) {
  return await http.get('/api/HouseBuilding/unitList', parm)
}
// 新增单元
export async function addApi(parm) {
  return await http.post('/api/houseUnit', parm)
}
// 编辑单元
export async function editApi(parm) {
  return await http.put('/api/houseUnit', parm)
}
// 删除单元
export async function deleteApi(parm) {
  return await http.delete('/api/houseUnit', parm)
}
